var util = require('../../utils/util.js');

Page({
    data: {
        icon: {
            type: 'warn',
            color: '#ef473a',
        },

    },

    goBack: function() {
        wx.navigateBack();
    },

    yaohaofu:function(){
        var picUrl = util.baseUrl+"/static/image/yaohaosign.jpg";
        wx.previewImage({
            urls: [picUrl],
        })
    },
    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function (options) {
        wx.showShareMenu({
            withShareTicket: true
        })
    },
    goLaughBox: function(){
        wx.navigateToMiniProgram({
            appId: 'wxaf45aa5426d3bd10',
            path: 'page/video/video',
            extraData: {
          
            },
           
            success(res) {
                // 打开成功
                console.log("跳转到笑话盒子成功");
            },
            fail(){
                console.log("取消跳转到笑话盒子")
            }
        })
    },

    /**
     * 用户点击右上角分享
     */
    onShareAppMessage: function(ops) {
        if (ops.from === 'button') {
            // 来自页面内转发按钮
            console.log(ops.target)
        }
        return {
            title: '杭州最新一期小客车摇号结果出来啦,快来查查吧',
            path: '/pages/carQuery/carQuery',
            success: function(res) {
                // 转发成功
                console.log("转发成功:" + JSON.stringify(res));
            },
            fail: function(res) {
                // 转发失败
                console.log("转发失败:" + JSON.stringify(res));
            }
        }
    }
})